<template>
    <div class="block">
        <el-rate v-model="level"></el-rate>
    </div>
</template>

<script>
    export default {
        name: "courseLevel",
        data(){
            return {
                colors: ['#99A9BF', '#F7BA2A', '#FF9900'],
                level:this.num//解决子组件改变父组件传过来的值带来的报错
            }
        },
        props:{
            num:Number
        }
    }
</script>

<style scoped>

</style>